﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using LGE;

namespace MagicFight
{
    public abstract class GameObject : EngineObject
    {
        public static PlayScreen ps = null;

        //private Vector2 position;
        //public Vector2 Position { set { prevPosition = position; position = value; } get { return position; } }
        //public Vector2 prevPosition;

        public GameObject(Texture2D sprite)
            : base(sprite)
        {
        }

        public override void Update(GameTime gameTime)
        {
        }

        public virtual void MapCollision(Vector2 dir)
        {
            /*if (dir == Vector2.Zero) return;
            if (dir == Direction.Up || dir == Direction.Down)
                position.Y = prevPosition.Y;
            if (dir == Direction.Left || dir == Direction.Right)
                position.X = prevPosition.X;*/
        }


    }
}